package com.dcw.lixb.designmode.command;

/**
 * @author lixiaobin
 * @date 2020-07-23 17:05:56
 * @desc 描述信息
 */
public class CommandMain {
    public static void main(String[] args) {
        Stock stock = new Stock("ICBC",100);
        Broker broker = new Broker();
        broker.takeOrder(new BuyOrder(stock));
        broker.takeOrder(new BuyOrder(stock));
        broker.takeOrder(new SellOrder(stock));

        broker.placeOrders();
    }
}
